-
Notifications
You must be signed in to change notification settings - Fork 468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix error message passing in Server::Start #1225
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May you add a description on what is fixed and the different before and after?
For example, before the PR, the error message in this line can never be dumped into log. So users can hardly know why the server fail to start. |
Merging... |
@@ -319,8 +319,7 @@ int main(int argc, char *argv[]) { | |||
uint32_t ports[] = {config.port, config.tls_port, 0}; | |||
for (uint32_t *port = ports; *port; ++port) { | |||
if (Util::IsPortInUse(*port)) { | |||
LOG(ERROR) << "Could not create server TCP since the specified port[" << *port << "] is already in use" | |||
<< std::endl; | |||
LOG(ERROR) << "Could not create server TCP since the specified port[" << *port << "] is already in use"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does LOG already append endl?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure.
No description provided.